<template>
    <s-box title="">
        <div class="chart-wrap" ref="chart">
            
        </div>
    </s-box>
</template>
<script>
import delegate from '../js/event.js';
import echarts from "echarts";
import data2 from "./guanxi.json";
import mixin from '../js/mixin.js';
export default {
    mixins:[mixin],
    data() {
        return {
           data2
        }
    },
    mounted(){
        this._initChart();
        this._initMethod();
    },
    beforeDestroy(){
        // 移除事件
        delegate.$off('s-search',this._initSearch);
        delegate.$off('s-resize',this._initChart)
    },
    methods: {
        _initMethod() {
            delegate.$on('s-search',this._initSearch);
            delegate.$on('s-resize',this._initChart);
        },
        _initSearch(obj) {

        },
        _initChart(){
             
        }
    },
}
</script>
<style lang="scss" scoped>
  .chart-wrap{
      width: 100%;
      height: 100%;
  }
</style>
